package com.qingcloud.base.em;

public enum BusinesstypeEm {

    BUSINESS_HEALTH(1, "健康空气"),
    BUSINESS_NETGRID(2, "网格化"),
    BUSINESS_COMMON_ADMIN(3, "权限管理平台"),
    BUSINESS_SHIP(4, "船舶平台"),
    BUSINESS_DATA_FUSION(5, "数据融合平台"),
    BUSINESS_TASKAPP(6, "溯源任务APP"),
    BUSINESS_POLLUTIONENV(7, "污染源管理平台"),
    BUSINESS_WECT(8, "水环境管理平台"),
    BUSINESS_ECC(9, "应急指挥平台"),
    BUSINESS_MWASTE(10, "固废管理平台"),
    BUSINESS_LABORATORY(11, "智慧实验室管理平台"),
    BUSINESS_SMARTEVN(99, "智慧环保综合管控平台");

    public int code;

    public String name;

    BusinesstypeEm(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getNameByCode(int code) {
        BusinesstypeEm[] uss = values();
        for (BusinesstypeEm us : uss) {
            if (us.code == code) {
                return us.name;
            }
        }
        return null;
    }
}
